﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AllDealMenu.ascx.cs" Inherits="_5ChickDeal.UserControl.AllDealMenu" %>
<asp:DataList ID="DataListDeal" runat="server"
    RepeatLayout="Flow" CellPadding="20">
    
    <ItemStyle CssClass="AllDealsMenu" />
    
    <ItemTemplate>
    
        <div  class="ADTitle"><strong>Deal đang bán</strong></div>
        <div class="ADC">
          <ul>
            <li>

              <h4><asp:HyperLink ID="title" runat="server" 
                      NavigateUrl='<%# "~/DealDetails.aspx?id="+Eval("id") %>' Text='<%# Eval("ten") %>'></asp:HyperLink></h4>
              <div class="ADImg">
              		<asp:Image ID="Image1" runat="server" Width="173px" Height="248px"
                        ImageUrl='<%# "~/Resource/ImageDeals/"+Eval("hinh") %>' />
                    
                    
                    <div class="AllDis"><strong class="C1">-</strong><strong class="C2"><asp:Label 
                            ID="giam" runat="server" Text='<%# Eval("giam") %>'></asp:Label><span class="Pre">%</span></strong></div>
                  
                    <div class="Count">
                    	<div class="CountL"></div>
                        <div class="CountC">

                            <p class="OldPrice">Giá trị: <asp:Label ID="trigia" runat="server" 
                                    Text='<%# Eval("gia","{0:#,##0}") %>'></asp:Label></p>
                            <p class="NewPrice2"><span class="Conlai">Còn lại :</span> <strong>
                                <asp:Label runat="server" ID="conlai" Text='<%# Eval("giaconlai","{0:#,##0}") %>'></asp:Label> </strong><span class="Dong">đ</span></p>
                        </div>
                        <div class="CountR"></div>
                    </div>
              </div>

            </li>
          </ul>
        </div>
        <div class="ADE"></div>
     
    </ItemTemplate>
     
</asp:DataList>